package com.todo.event.activity.application.entity.context;

import lombok.Data;

import java.util.Date;

/**
 * @author azhebuxing
 * @date 2025/1/13 13:38
 * @description
 */
@Data
public class ActivityRuleContext {


    private Long activityId;

    private Long userId;

    private String uk;

    private Date operateTime;

    /**
     * 是否黑名单验证
     */
    private boolean hitBlackList;
    /**
     * 黑名单所属分类
     */
    private String blackClassify;

    /**
     * 执行频次 n天/n次
     */
    private Frequency frequency;

    /**
     * 是否人群验证
     */
    private boolean hitCrowd;
    /**
     * 人群分类
     */
    private String crowdClassify;

    /**
     * 责任链处理结果
     */
    private boolean executeResult = true;

    @Data
    public static class Frequency {
        private Integer day;
        private Integer count;
    }
}
